package com.live.player.openawardview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

/**
 * 滚动号球实例
 */
public class MainActivity extends AppCompatActivity {

    private OpenAwardCodeBall openAwardCodeBall;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        openAwardCodeBall = findViewById(R.id.openAwardCodeBall);
        openAwardCodeBall.setStartToEndContent(9);
        openAwardCodeBall.setScollDirection(ScollDirection.FORM_BOTTOM_TO_UP);
        openAwardCodeBall.setContentAndRun(9, 0);

    }
}
